package com.example.administrator.kotlin.adapter

import android.support.v4.app.FragmentActivity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.administrator.kotlin.R
import com.example.administrator.kotlin.bean.Newslist

/**
 * Created by Administrator on 2018/3/1/001.
 */
open class NewsAdapter(val activity: FragmentActivity, val layout: Int, val news: List<Newslist>?) : BaseQuickAdapter<Newslist, BaseViewHolder>(layout, news) {
    override fun convert(holder: BaseViewHolder, item: Newslist) {
        holder.setText(R.id.tv_news_title,item.ctime)
    }
}